# -*- encoding=utf-8 -*-
from app import app

from flask import render_template,request,jsonify


@app.route('/')
def index():
    return render_template("index.html")

@app.route('/news')
def news():
    return render_template("news.html")

@app.route('/dashboard')
def dashboard():
    return render_template("dashboard.html")

@app.route('/user')
def user():
    return render_template("user.html")

@app.route('/getusername')
def getusername():
    return jsonify(list=[{"username":"13967880231","name":u"张三"},{"username":"13967880231","name":"李四"}])


@app.route('/getname')
def getname():

    return jsonify(list=[])


def index(json_content):
    return jsonify(list=[{"username":"13967880231","name":u"张三"},{"username":"13967880231","name":"李四"}])

